﻿using MaterialDemo.Model.Goods_EquipmentDTO;
using System;
using System.Collections.Generic;
using System.Text;

namespace MaterialDemo.IService.IGoods_Equipment
{
    public interface IGoods_EquipmentService
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <param name="selectInfo"></param>
        /// <returns></returns>
        List<EquipmentOutput> LoadPageEntities(int pageIndex, int pageSize, out int totalCount, string selectInfo);

        /// <summary>
        /// 获取所有数据,用于Excel导出
        /// </summary>
        /// <returns></returns>
        List<EquipmentExcelOutput> LoadEntities();

        /// <summary>
        /// 根据id查询
        /// </summary>
        /// <returns></returns>
        List<EquipmentOutput> LoadEntities(int id);

        bool Add(EquipmentInput input, string reviewer);
        /// <summary>
        /// Excel批量导入
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        bool InputExcel(List<EquipmentInput> input, string reviewer);

        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        bool Upadate(EquipmentInput input);

        /// <summary>
        /// 检查库存
        /// </summary>
        /// <param name="consumablesID"></param>
        /// <param name="num"></param>
        /// <returns></returns>
        bool CheckStore(string goodsId, double num);
        bool Detele(int id);

    }
}
